package com.lemo.service;

import com.lemo.dao.FomwUserMapper;
import com.lemo.entity.FomwUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @名称: UserServiceImpl
 * @描述:
 * @作者: liming
 * @时间: 2017/10/30
 * @版本: 1.0
 */
@Service
public class UserServiceImpl implements UserService {



    @Autowired
    private FomwUserMapper fomwUserMapper;


    @Override
    public int insertSelective(FomwUser record) throws Exception {
        return fomwUserMapper.insertSelective(record);
    }

    @Override
    public int insertBatch(List<FomwUser> list) throws Exception {
        return fomwUserMapper.insertBatch(list);
    }

    @Override
    public int updateByPrimaryKey(FomwUser record) throws Exception {
        return fomwUserMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateByPrimaryKeySelective(FomwUser record) throws Exception {
        return fomwUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyBatch(List<FomwUser> list) throws Exception {
        return fomwUserMapper.updateByPrimaryKeyBatch(list);
    }

    @Override
    public int deleteByPrimaryKey(BigDecimal id) throws Exception {
        return fomwUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateForState(BigDecimal id) throws Exception {
        return fomwUserMapper.updateForState(id);
    }

    @Override
    public FomwUser selectByPrimaryKey(BigDecimal id) throws Exception {
        return fomwUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<FomwUser> selectList(Map<String, Object> params) throws Exception {
        return fomwUserMapper.selectList(params);
    }
}

/**
 * 文件：UserServiceImpl.java
 * 版权所有  2016
 */


